FROM python:3.6.6-slim-stretch
LABEL maintainer="lizh"
ADD ./wechattool.py /app/
WORKDIR /app
ENV TZ Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN pip install itchat apscheduler pandas sqlalchemy pymysql \
    -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir
CMD [ "python", "wechattool.py" ]
